home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Cream of the Crop 3
/
Cream of the Crop 3.iso
/
utility
/
btoa52.zip
/
BTOA.DIF
< prev
next >
Wrap
Text File
|
1994-04-08
|
872b
|
41 lines
*** btoa.c Fri Apr 08 15:54:20 1994
--- btoa_.c Fri Apr 08 21:24:24 1994
***************
*** 5,14 ****
--- 5,17 ----
#include <stdio.h>
#ifdef AMIGA
#include <stdlib.h>
#include <string.h>
#endif AMIGA
+ #ifdef MSDOS
+ #include <fcntl.h>
+ #endif /* MSDOS */
#include "btoa.h"
#if USE_MACROS
#include "chksum.h"
#endif USE_MACROS
***************
*** 109,121 ****
--- 112,130 ----
if (diagnosis)
error = producerepair(infile);
else if (repair)
error = performrepair(infile);
else if (a_to_b)
+ {
+ setmode(fileno(outfile), O_BINARY);
error = atob(infile);
+ }
else
+ {
+ setmode(fileno(infile), O_BINARY);
error = btoa(infile, infilename);
+ }
}
/* Close all opened files. */
if (openinput)
fclose(infile);